import * as type from '../action-type.js'
let initState = { num: 0 }

export default function (state = initState, action) {
    switch (action.type) {
        case type.INCREMENT:
            return { num: state.num + 1 };
            // return { num: 10 };
            break;
        default:
            return state;
    }
}
